Skip to content

refactor(client): notes 메모 흐름 분리 - #69

Merged
tartelettie merged 18 commits into
refactor/todo-routine-flowfrom
refactor/notes-edit-flow
Sep 3, 2026
Merged

tartelettie merged 18 commits into
refactor/todo-routine-flowfrom
refactor/notes-edit-flow

Conversation

@tartelettie

@tartelettie tartelettie commented Aug 28, 2026 •

Copy link
Copy Markdown
Collaborator

이 PR을 어떻게 봐야 하나 이 PR들은 리뷰를 쉽게 하려고 기능 단위로 쌓아 둔 PR입니다. 지금 GitHub 화면에서 #66/#69/#70은 main으로 바로 merge되는 PR이 아닙니다. 선행 PR 브랜치를 base로 둬서 리뷰어가 "이번 PR에서 추가로 바뀐 부분"만 작게 볼 수 있게 해 둔 상태입니다. 예를 들어 #66 화면에 이렇게 보이면 정상입니다. text refactor/todo-routine-flow → refactor/frontend-context-foundation 이 상태에서 바로 merge하면 main이 아니라 refactor/frontend-context-foundation으로 들어갑니다. 그래서 실제 main merge는 아래 순서로 합니다. text #65를 main에 merge → #66 base를 main으로 바꾼 뒤 merge → #69 base를 main으로 바꾼 뒤 merge → #70 base를 main으로 바꾼 뒤 merge 즉 리뷰할 때는 지금처럼 stacked PR로 작게 보고, merge할 때만 다음 PR의 base를 main으로 바꿔서 순서대로 넣습니다. --- ## 왜 메모 화면 로직이 Screens.tsx와 useAppData.ts에 남아 있어 todo/routine 리팩토링 이후에도 기능별 책임 경계가 완전히 나뉘지 않았습니다. 리뷰 기준에 맞추려면 notes도 notes/components, notes/hooks, notes/domain 안에서 자기 흐름을 소유해야 합니다. 이 PR은 notes 범위만 분리합니다. 선행 todo/routine 변경과 time 변경은 섞지 않습니다. ## 무엇을 했나 - MemoScreen을 client/src/notes/components/로 분리했습니다. - 메모 화면 스타일을 MemoScreen.styles.ts로 분리했습니다. - 메모 상태와 handler를 제공하는 hook 이름을 React 관습에 맞춰 useMemos로 정리했습니다. - MemoScreen은 memoActions 묶음 객체 대신 memos, onAddMemo, onPatchMemo, onDeleteMemo 명시적 props를 받게 했습니다. - memo.ts와 테스트를 client/src/notes/domain/으로 이동했습니다. - 메모 선택 핸들러를 명명된 selectMemo 흐름으로 정리했습니다.

  • web에서 메모 삭제 버튼이 부모 메모 선택 이벤트와 섞이지 않도록 이벤트 전파를 막고, 삭제 확인은 window.confirm으로 처리했습니다. ## 어떻게 바뀌었나 - before: Screens.tsx가 메모 list/edit UI와 메모 handler를 직접 가졌습니다. - after: notes 화면은 notes/components/MemoScreen.tsx, 메모 상태/handler 조립은 notes/hooks/useMemos, 본문 파싱 규칙은 notes/domain/memo.ts가 담당합니다. - 화면 컴포넌트는 필요한 props를 명시적으로 받습니다. Actions라는 넓은 이름의 객체 prop은 사용하지 않습니다. - 태그/할 일 파싱 같은 본문 기반 규칙은 domain 함수로 유지하고, 화면 코드에는 규칙을 다시 인라인하지 않았습니다. ## 유지한 내용 - 메모 생성/수정/삭제 UX - 태그 파싱, 본문 기반 todo 추출 동작 - 기존 메모 데이터 형식과 API 요청 방식 - useAppData의 workspace data, cache, loading, request helper 소유권 - todo/routine/time 동작 - 기존 저장된 메모의 옛 태그를 일괄 재계산하지 않는 정책 ## 일부러 제외한 내용 - time 화면 리팩토링 - workspace/cache/loading/request 소유권 분리 - 메모 데이터 마이그레이션 - line limit, e2e/smoke test, 새 임의 CI 정책 추가 - AGENTS.md 변경 ## 검증 - cd client && npm test -- --run - cd client && npm run typecheck - cd client && npm run format:check

@vercel

vercel Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
todo Ready Ready Preview Sep 3, 2026 10:36am UTC

@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from 91a21fa to eb0e044 Compare August 28, 2026 12:48
@tartelettie
tartelettie changed the base branch from main to refactor/todo-routine-flow August 28, 2026 12:49
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from eb0e044 to 9967771 Compare August 29, 2026 00:54
@tartelettie
tartelettie force-pushed the refactor/todo-routine-flow branch from 42afeaa to f8be6e3 Compare August 29, 2026 01:04
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from 9967771 to fddfa48 Compare August 29, 2026 01:05
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from fddfa48 to 79f8294 Compare August 29, 2026 01:21
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from 79f8294 to 75eea3b Compare August 29, 2026 02:30
@tartelettie
tartelettie force-pushed the refactor/todo-routine-flow branch from e0d1b2e to da1dd8b Compare August 29, 2026 02:35
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from 75eea3b to cab7886 Compare August 29, 2026 02:35
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from cab7886 to 7b05733 Compare August 29, 2026 02:46
@tartelettie
tartelettie force-pushed the refactor/todo-routine-flow branch from 1991681 to c5960cd Compare August 29, 2026 02:53
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from 7b05733 to 5d2ae52 Compare August 29, 2026 02:54
@tartelettie
tartelettie force-pushed the refactor/todo-routine-flow branch from c5960cd to 8b5beed Compare August 29, 2026 03:09
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from 5d2ae52 to 0d94102 Compare August 29, 2026 03:12
@tartelettie
tartelettie force-pushed the refactor/todo-routine-flow branch from 8b5beed to 7660462 Compare August 29, 2026 03:22
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from 0d94102 to 6b8693c Compare August 29, 2026 03:23
@tartelettie
tartelettie force-pushed the refactor/todo-routine-flow branch from 7660462 to 3256ade Compare August 29, 2026 03:27
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from 6b8693c to d8de055 Compare August 29, 2026 03:28
@tartelettie
tartelettie force-pushed the refactor/notes-edit-flow branch from cc619b9 to d6797c2 Compare August 29, 2026 10:17
@CheHyeonYeong

Copy link
Copy Markdown
Owner

todo에도 썼듯
component
ㄴ style

domain
test
이렇게 나눠주심 좋을 것 같아요

@CheHyeonYeong

Copy link
Copy Markdown
Owner

나머지는 ㄱㅊ아서 위의 것만 된다면 merge 해주세요

@tartelettie
tartelettie merged commit eb899c4 into refactor/todo-routine-flow Sep 3, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 989bcad0 Deployed Sep 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants